package com.xique.park.bean.request.web.chargeRule;

import com.xique.common.core.utils.json.JSONObject;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 编辑规则请求request
 *
 * @author xique
 */
@Data
public class EditChargeRuleRequest {

    @NotNull(message = "收费规则ID不能为空")
    private Long ruleId;

    @NotBlank(message = "模板名称不能为空")
    private String ruleName;

    @NotBlank(message = "收费模板不能为空")
    private String template;

    @NotNull(message = "收费规则内容不能为空")
    private JSONObject content;

    private TypeGarage typeGarage;
}
